package com.cjw.demo.mapper;

import com.cjw.demo.entity.SysRegion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 地区表 Mapper 接口
 * </p>
 *
 * @author cjw
 * @since 2021-11-19
 */
public interface SysRegionMapper extends BaseMapper<SysRegion> {
    @Select("SELECT * FROM sys_region WHERE PARENT_ID=#{i}")
    List<SysRegion> lists(@Param("i") int i);
    @Select("SELECT * FROM sys_region WHERE PARENT_ID=#{parentId}")
    List<SysRegion> listshi(@Param("parentId")Integer parentId);
    @Select("SELECT * FROM sys_region WHERE PARENT_ID=#{paren}")
    List<SysRegion> listxian(@Param("paren")Integer paren);
}
